package com.yige.service;

import com.mongodb.DBObject;

import java.util.List;

/**
 * Created by sunhao on 2015/9/22 0022.
 */
public interface StudentService extends BasicMongoService {

    /**查找学生所有课程*/
    List<DBObject> findAllLessonForStudent(Object studentId);

    /**为学生绑定课程*/
    boolean bindLessonForStudent(Object studentId, Object lessonId);

    /**为学生解除课程*/
    boolean removeLessonForStudent(Object studentId, Object lessonId);

    /**为学生修改课程*/
    boolean updateLessonForStudent(Object studentId, List<DBObject> lessons);

    /**查找学生所有教师*/
    List<DBObject> findAllTeacherForStudent(Object studentId);

    /**为学生添加老师*/
    boolean bindTeacherForStudent(Object studentId, Object teacherId);

    /**为学生解除老师*/
    boolean removeTeacherForStudent(Object studentId, Object teacherId);

    /**为学生修改老师*/
    boolean updateTeacherForStudent(Object studentId, List<DBObject> teachers);

    /**更改学生缴费信息*/
    boolean updatePayInfoForStudent(Object studentId, List<DBObject> payInfo);

    /**查找欠费学生*/
    List<DBObject> findNoPayStudent();

    /**查找到期学生*/
    List<DBObject> findFinishStudent();

}
